<!DOCTYPE html>
<html lang="en-gb" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Notification - UIkit tests</title>
        <script src="js/test.js"></script>
    </head>

    <body>

        <div class="uk-container">

            <h1>Notification</h1>

            <div class="uk-child-width-1-2@m" uk-grid>
                <div>

                    <p class="uk-notification-message">
                        <a href="#" class="uk-notification-close" uk-close></a>
                        Message
                    </p>

                    <p class="uk-notification-message uk-notification-message-primary">
                        <a href="#" class="uk-notification-close" uk-close></a>
                        Primary message
                    </p>

                    <p class="uk-notification-message uk-notification-message-success">
                        <a href="#" class="uk-notification-close" uk-close></a>
                        Success message
                    </p>

                    <p class="uk-notification-message uk-notification-message-warning">
                        <a href="#" class="uk-notification-close" uk-close></a>
                        Warning message
                    </p>

                    <p class="uk-notification-message uk-notification-message-danger">
                        <a href="#" class="uk-notification-close" uk-close></a>
                        Danger message
                    </p>

                </div>
                <div>

                    <p uk-margin>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'top-left'})">Top Left</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'top-center'})">Top Center</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'top-right'})">Top Right</button>
                    </p>

                    <p uk-margin>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'bottom-left'})">Bottom Left</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'bottom-center'})">Bottom Center</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Message', pos: 'bottom-right'})">Bottom Right</button>
                    </p>

                    <h2>Styles</h2>

                    <p uk-margin>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Primary message', status: 'primary'})">Primary</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Success message', status: 'success'})">Success</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Warning message', status: 'warning'})">Warning</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: 'Danger message', status: 'danger'})">Danger</button>
                    </p>

                    <h2>Specials</h2>

                    <p uk-margin>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: '<span uk-icon=\'icon: check\'></span> Message with an icon'})">With icon</button>
                        <button class="uk-button uk-button-default" type="button" onclick="UIkit.notification({message: '<a href=\'#new-location\'>Message with a link</a>'})">With link</button>
                        <button class="uk-button uk-button-default" type="button"  onclick="UIkit.notification({message: 'Message without timeout', timeout: 0})">No Timeout</button>
                        <button class="uk-button uk-button-default" onclick="UIkit.notification.closeAll()">Close All</button>
                    </p>

                </div>
            </div>

            <h2>JavaScript Options</h2>

            <div class="uk-overflow-auto">
                <table class="uk-table uk-table-striped">
                    <thead>
                        <tr>
                            <th>Option</th>
                            <th>Value</th>
                            <th>Default</th>
                            <th>Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code>message</code></td>
                            <td>string</td>
                            <td>false</td>
                            <td>Notification message to show.</td>
                        </tr>
                        <tr>
                            <td><code>status</code></td>
                            <td>string</td>
                            <td>null</td>
                            <td>Notification status color.</td>
                        </tr>
                        <tr>
                            <td><code>timeout</code></td>
                            <td>integer</td>
                            <td>5000</td>
                            <td>Visibility duration before a notification disappears.</td>
                        </tr>
                        <tr>
                            <td><code>group</code></td>
                            <td>string</td>
                            <td>null</td>
                            <td>Useful if you want to close all notifications in a specific group.</td>
                        </tr>
                        <tr>
                            <td><code>pos</code></td>
                            <td>string</td>
                            <td>top-center</td>
                            <td>Notification display position.</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>

    </body>
</html>
